package com.weidey.blogWeb.controller;


import com.weidey.blogWeb.domain.WebCarousel;
import com.weidey.blogWeb.service.IWebCarouselService;
import com.weidey.common.core.controller.BaseController;
import com.weidey.common.core.domain.AjaxResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 轮播图Controller
 */
//@Api(tags = "轮播图")
@RestController
@RequestMapping("/blog/web/carousel")
public class WebCarouselController extends BaseController {

    @Resource
    IWebCarouselService blogWebCarouselService;
    /**
     * 允许匿名请求
     * 查询轮播图列表
     * @return TableDataInfo
     */
//    @ApiOperation("查询轮播图列表")
    @GetMapping("/select/list")
    public AjaxResult selectList(){
        List<WebCarousel> list = blogWebCarouselService.selectBlogCarouselList();
        return AjaxResult.success(list);
    }

}
